<?php 


class Zend_View_Helper_GetToCat extends Zend_View_Helper_Abstract{

    private $_currentUser = null;

    public function getToCat($text, $param, $catString = "<deecat/>"){
        
        if (strstr($text, $catString)){
            $result = explode($catString, $text);
            if($param == 'all'){
                return $result[0].$result[1];
            }else{
                return $result[0];
            }
        }else{
            return $text;
        }
        
        
    }
}


